package com.guigu.liuzhireng.service.impl;

import com.guigu.liuzhireng.mapper.ApplyMapper;
import com.guigu.liuzhireng.pojo.Apply;
import com.guigu.liuzhireng.service.ApplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ApplyServiceImpl implements ApplyService {

    @Autowired
    ApplyMapper applyMapper;

    @Override
    public int insert(Apply apply) {
        return applyMapper.insert(apply);
    }

    @Override
    public int update(Apply apply) {
        return applyMapper.updateByPrimaryKeySelective(apply);
    }

    @Override
    public Apply selectOnt(Integer id) {
        return applyMapper.selectByPrimaryKey(id);
    }
}
